<?php
	require_once '../connect.php';
	$title=$_POST['title'];
	$price = $_POST['price'];
	$sql="UPDATE library SET price=$price WHERE title='$title'";
	if(mysqli_query($con, $sql)){
		 echo "<script>alert('modify success!');</script>";
        echo "<script>window.location.href='manage.php';</script>";
	}else{
        echo "<script>alert('modify failed!');</script>";
        echo "<script>window.location.href='manage.php';</script>";
    
    }